#ifndef CIcon_H
#define CIcon_H
#include <glog/logging.h>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <string>
class CIcon
{
public:
	CIcon(std::string path);
	CIcon();
	~CIcon();
	void setTexture(std::string stringPath);
	void setTexture(std::string stringPath, int x, int y, int width, int height);
	void draw(sf::RenderWindow &render);
	void update();
	void setPosition(int x, int y);
	void setPosition(sf::Vector2f newPosition);
	void setScale(float x, float y);
	sf::Vector2f getPosition();
private:
	sf::Texture iconTexture;
	sf::Sprite iconSprite;
	sf::Vector2f actualScale;
	sf::Vector2f actualPosition;
};
#endif //CIcon_H